import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import  PiniaPluginPersistedstate  from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
//引用懒加载插件并注册
import { lazyPlugin } from '@/directives/index.js'
import { componentPlugin } from '@/components/index.js'

const app = createApp(App)
const pinia =createPinia()
//注册持久化插件
pinia.use(PiniaPluginPersistedstate)

app.use(lazyPlugin)
app.use(pinia)
app.use(router)
app.use(componentPlugin)

app.mount('#app')

